<?php
//Addmin Settings
//define('REST_THUMB_WIDTH', 400);
//define('REST_THUMB_HEIGHT', 400);



class rsConfig {

    public static function getUploadDir() {
        return '/upload/';
    }

    public static function getImageDir() {
        return YiiBase::getPathOfAlias('webroot') . '/images';
    }

    public static function getImageUrl() {
        return Yii::app()->getBaseUrl() . '/images';
    }

    public static function getEmailDir() {
        return Yii::app()->getBasePath() . '/views/email/';
    }

    

    public static function accountTypeFilter() {
        return array('B' => 'Basic', 'P' => 'Premium');
    }

    

    public static function getYesNo($key=NULL) {
        $Arr = array(0 => 'No', 1 => 'Yes');

        if (!empty($key)) {
            return $Arr[$key];
        } else {
            return $Arr;
        }
    }

}

?>